import axios from './axios'
const apiMall = 'http://223.4.65.79:8081/ce/'

/*
* 整体接口管理
*/

/* --------------界面----------- */
//获取地图数据
const getCE = (params) => axios('post',apiMall +  'countareacode',params);
//获取文化元素清单
const getCemain = (params) => axios('POST',apiMall + 'cemainlistbyusername',params);
//获取重点元素列表
const getCede = (params) => axios('POST',apiMall + 'cedecodelistbyusername',params);
//获取列表内详情
const getInfoList = (params) => axios('POST',apiMall + 'cebaseinfolist',params);
//获取转化利用列表
const getChange = (params) => axios('POST',apiMall + 'CE_ZHLY_List_byAreaCode_All',params);
//获取转化利用表格
const getChangeTable = (params) => axios('POST',apiMall + 'CE_ZHLY_Stat_Table',params);
//获取转化利用时间图表
const getChangeTimeEcharts = (params) => axios('POST',apiMall + 'CE_ZHLY_Stat_UseDate',params);
//获取转化利用type图表
const getChangeTypeEcharts = (params) => axios('POST',apiMall + 'CE_ZHLY_Stat_type',params);
//获取转化利用ptype图表
const getChangePtypeEcharts = (params) => axios('POST',apiMall + 'CE_ZHLY_Stat_Ptype',params);
//获取转化利用详情页信息
const getChangeInfo = (params) => axios('POST',apiMall + 'CE_ZHLY_By_Id',params);


export default {
  getCE,
  getCemain,
  getCede,
  getInfoList,
  getChange,
  getChangeTable,
  getChangeTimeEcharts,
  getChangeTypeEcharts,
  getChangePtypeEcharts,
  getChangeInfo
}
